package com.kfm.base.oop3;

public class Animal extends Object {

    private String name;

    private String type;

    int a = 1;

    static int b = 1;

    public Animal(String name, String type){
        this.name = name;
        this.type = type;
    }

    public String getName(){
        return name;
    }

    public void eat(){
        System.out.println("吃");
    }

    public void say(){
        System.out.println(name + "叫");
    }

    public void show(){
        System.out.println(name + type);
    }

    public static void staticMethod(){
        System.out.println("Animal :: staticMethod");
    }
}
